﻿using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SD.Entities;
using SD.DAL;
using SD.IDAL;
using SD.IBUS;

namespace SD.BUS
{
    public class TownBIZ: BaseBIZ, ITownBIZ
    {
        #region ITownBIZ Members

        public List<Town> GetAll()
        {
            List<Town> lstResut = new List<Town>();
            try
            {
                ITownDAO townDAO = new TownDAO();
                lstResut = townDAO.GetAll();
            }
            catch (SqlException ex)
            {
                throw ex;
            }

            return lstResut;
        }

        public Town GetById(string townId)
        {
            throw new NotImplementedException();
        }

        public bool Insert(Town town)
        {
            throw new NotImplementedException();
        }

        public bool Update(Town town)
        {
            throw new NotImplementedException();
        }

        public bool Delete(string townId)
        {
            throw new NotImplementedException();
        }

        #endregion

        #region ITownBIZ Members


        public Town GetByName(string name)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
